/**
 * 获取token
 * @returns {string}
 */
export function getToken() {
  return localStorage.getItem('token')
}

export function getUserId() {
  return localStorage.getItem('userId')
}

export function getUserName() {
  return localStorage.getItem('userName')
}

export function setUserName(userName) {
  localStorage.setItem('userName', userName)
}

export function getAvatar() {
  return localStorage.getItem('avatar')
}

export function setAvatar(avatar) {
  localStorage.setItem('avatar', avatar)
}
